home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / ScreenSaver / QD3DModule.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-14  |  1.7 KB  |  84 lines  |  [TEXT/CWIE]

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        QD3DModule.h                                             **
  4.  **                                                                          **
  5.  **                                                                          **
  6.  **     Purpose:     Implements an After Dark Module using QuickDraw 3D.         **
  7.  **                                                                          **
  8.  **                                                                          **
  9.  **                                                                          **
  10.  **     Copyright (C) 1997 Apple Computer, Inc.  All rights reserved.         **
  11.  **                                                                             **
  12.  **        Portions Copyright (C) 1995 Berkeley Systems Inc.                     **
  13.  **                                                                          **
  14.  **                                                                          **
  15.  *****************************************************************************/
  16.  
  17. #ifndef QD3DModule_h
  18. #define QD3DModule_h
  19.  
  20. #if PRAGMA_ONCE
  21.     #pragma once
  22. #endif
  23.  
  24. #include "GraphicsModule_Types.h"
  25.  
  26. #include <QD3D.h>
  27. #include <QD3DView.h>
  28. #include <QD3DRenderer.h>
  29. #include <QD3DDrawContext.h>
  30. #include <QD3DLight.h>
  31.  
  32. /*
  33. #include <QDOffscreen.h>
  34. */
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif    /* __cplusplus */
  38.  
  39. typedef struct iTQ3ADModule TQ3ADModule;
  40.  
  41.  
  42. OSErr DoInitialize(
  43.         Handle            *storage,
  44.         RgnHandle        blankRgn,
  45.         GMParamBlockPtr params);
  46.         
  47. OSErr DoClose(
  48.         Handle            storage,
  49.         RgnHandle        blankRgn,
  50.         GMParamBlockPtr params);
  51.         
  52. OSErr DoBlank(
  53.         Handle            storage,
  54.         RgnHandle        blankRgn,
  55.         GMParamBlockPtr params);
  56.         
  57. OSErr DoDrawFrame(
  58.         Handle            storage,
  59.         RgnHandle        blankRgn,
  60.         GMParamBlockPtr params);
  61.         
  62. OSErr DoSetUp(
  63.         RgnHandle        blankRgn,
  64.         short            message,
  65.         GMParamBlockPtr params);
  66.         
  67.  
  68. TQ3ADModule     **Q3ADModule_New(
  69.                     GMParamBlockPtr params);
  70.                 
  71. TQ3Status         Q3ADModule_Dispose(
  72.                     TQ3ADModule    **ioModule);
  73.                 
  74. TQ3Status        Q3ADModule_Draw(
  75.                     TQ3ADModule    *inModule);
  76.  
  77.  
  78.  
  79. #ifdef __cplusplus
  80. }
  81. #endif    /* __cplusplus */
  82.  
  83. #endif  /*  QD3DModule_h  */
  84.